/* module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
    const GoodsSchema = new Schema({
        "productId": {
            type:String
        },
        "productName":{
            type:String
        },
        "salePrice": {
            type:Number
        },
        "productImage":{
            type:String
        }
    });

    return mongoose.model('Goods', GoodsSchema, "goods");
} */
const goodsItem = require("./goodsItem")
module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
    const GoodsSchema = new Schema(goodsItem);

    return mongoose.model('Goods', GoodsSchema, "goods");
}